﻿using System.Collections.Generic;

namespace Booking.Salary
{
    /// <summary>
    /// 工资的项目
    /// </summary>
    public class SalaryItem
    {
        /// <summary>
        /// 名字
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据库中的 ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 类型，是收入，还是支出，还是计数
        /// </summary>
        public SalaryType SalaryType { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool Validation { get; set; }
        /// <summary>
        /// 是否常用
        /// </summary>
        public bool CommonlyUsed { get; set; }

  


    }
    /// <summary>
    /// 工资是收入，扣减，还是与工资总额无关
    /// </summary>
    public enum SalaryType
    {
        /// <summary>
        /// 收入
        /// </summary>
        Income = 1,
        /// <summary>
        /// 支出
        /// </summary>
        Expenditure = 2,
        /// <summary>
        /// 与工资总额无关
        /// </summary>
        Irrelevant = 3

    }
}
